#include<stdio.h>
#include<unistd.h>
#include<sys/types.h>

int main() {
    unsigned int a = 20191231;
    printf("a = %d\n", a);
    printf("%X\n", &a);
    printf("%d\n", getpid());
    pid_t pid = fork();
    if(!pid) {
        a = 20200516;
        printf("a = %d\n", a);
        printf("sub process : %d\n", getpid());
        printf("%X\n", &a);
    }
    else {
        printf("a = %d\n", a);
        printf("main process : %d\n", getpid());
        printf("%X\n", &a);
    }

    return 0;
}